import useRequest from '@/utils/request'
const request = useRequest({})

// 查询用户列表
export function listUser(query: any) {
  return request.get('/system/appUser/list', {
    params: query,
  })
}

// 查询小程序用户信息
export function getMiniUser(query: any) {
  return request.get('/cj-user/sys/user/mini/info', {
    params: query,
  })
}

// 绑定用户信息
export function bindUser(data: any) {
  return request.post('/system/appUser/bind', data)
}

// 解绑用户信息
export function unbindUser(data: any) {
  return request.post('/system/appUser/unbind', data)
}

// 绑定用户信息
export function bindUserV2(data: any) {
  return request.post('/system/appUser/bindV2', data)
}

// 解绑用户信息
export function unbindUserV2(data: any) {
  return request.post('/system/appUser/unbindV2', data)
}
